package com.csun.cmny.provider.dao;

import com.csun.cmny.provider.model.domain.OmcFlowMessageGroup;
import com.csun.cmny.provider.model.dto.message.FlowMessageQueryDto;
import com.csun.cmny.provider.model.vo.message.FlowMessageVo;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface OmcFlowMessageGroupMapper extends Mapper<OmcFlowMessageGroup> {

    /**
     * query omc flow message group list with page
     *
     * @param flowMessageQueryDto the flow message query dto
     *
     * @return the list
     */
    List<FlowMessageVo> queryListWithPage(FlowMessageQueryDto flowMessageQueryDto);

    /**
     * query flow message by code and group id
     *
     * @param code    the code
     * @param groupId the group id
     *
     * @return the flow message vo
     */
    FlowMessageVo queryByCodeAndGroupId(@Param("code") String code, @Param("groupId") Long groupId);
}